﻿using B.S.BasicData.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Infrastructure
{
   /// <summary>
   /// 数据库上下文
   /// </summary>
    public class SCDbContext : DbContext
    {
        public SCDbContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 角色表 数据集
        /// </summary>
        public DbSet<RoleModel> RoleModels { get; set; }
        /// <summary>
        /// 部门表 数据集
        /// </summary>
        public DbSet<DepartmentModel> DepartmentModels{ get; set; }
        /// <summary>
        /// 账号表 数据集
        /// </summary>
        public DbSet<AccountModel> AccountModels     { get; set; }
        /// <summary>
        /// 日志表 数据集
        /// </summary>
        public DbSet<LogModel> LogModels { get; set; }
    }
}
